<?php 
header("Content-type: text/html; charset=utf-8"); 

$id = $_GET['id'];

$data = $_POST;

$data['create_time'] =time();

$db = include './db.php'; 

$db[$id]=$data;

$str = var_export($db,true);     //转成字符串

$str = "<?php return ".$str."?>";		//


file_put_contents('./db.php', $str);

header("Location:./index.php");


















 ?>